import request from '@/utils/request'

//拿到游戏列表
export function getGameList (params) {
    return request({
        url: '/api/game/getGameList',
        method: 'get',
        params
    })
}

// 获取用户权限游戏列表

export function getAuthGameList (params) {
    return request({
        url: '/api/game/getAuthGameList',
        method: 'get',
        params
    })
}

//新增游戏
export function addGame (data) {
    return request({
        url: '/api/game/add',
        method: 'post',
        data
    })
}

//更新游戏列表
export function updateGameList (data) {
    return request({
        url: '/api/game/update',
        method: 'post',
        data
    })
}

//删除游戏
export function delGame (data) {
    return request({
        url: '/api/game/del',
        method: 'post',
        data
    })
}

//拿到渠道列表
export function getChannelList (params) {
    return request({
        url: '/api/channel/getChannelList',
        method: 'get',
        params
    })
}



//新增渠道
export function addChannel (data) {
    return request({
        url: '/api/channel/add',
        method: 'post',
        data
    })
}

//更新渠道列表
export function updateChannelList (data) {
    return request({
        url: '/api/channel/update',
        method: 'post',
        data
    })
}

//删除渠道
export function delChannel (data) {
    return request({
        url: '/api/channel/del',
        method: 'post',
        data
    })
}


